var express = require("express");
var { createSite, findOneSite } = require("../controller/site");
var router = express.Router();

/* GET users listing. */
router.get("/", async function (req, res, next) {
  const data = await findOneSite();
  res.json(data);
});

router.post("/createSite", async function (req, res, next) {
  const data = await createSite();

  res.json(data);
});

module.exports = router;
